package com.ruoyi.source.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.source.mapper.FreightInfoMapper;
import com.ruoyi.source.domain.FreightInfo;
import com.ruoyi.source.service.IFreightInfoService;

/**
 * 运货人信息Service业务层处理
 * 
 * @author lml
 * @date 2025-01-06
 */
@Service
public class FreightInfoServiceImpl implements IFreightInfoService 
{
    @Autowired
    private FreightInfoMapper freightInfoMapper;

    /**
     * 查询运货人信息
     * 
     * @param id 运货人信息主键
     * @return 运货人信息
     */
    @Override
    public FreightInfo selectFreightInfoById(Long id)
    {
        return freightInfoMapper.selectFreightInfoById(id);
    }

    /**
     * 查询运货人信息列表
     * 
     * @param freightInfo 运货人信息
     * @return 运货人信息
     */
    @Override
    public List<FreightInfo> selectFreightInfoList(FreightInfo freightInfo)
    {
        return freightInfoMapper.selectFreightInfoList(freightInfo);
    }


    /**
     * 新增运货人信息
     * 
     * @param freightInfo 运货人信息
     * @return 结果
     */
    @Override
    public int insertFreightInfo(FreightInfo freightInfo)
    {
        return freightInfoMapper.insertFreightInfo(freightInfo);
    }

    /**
     * 修改运货人信息
     * 
     * @param freightInfo 运货人信息
     * @return 结果
     */
    @Override
    public int updateFreightInfo(FreightInfo freightInfo)
    {
        return freightInfoMapper.updateFreightInfo(freightInfo);
    }

    /**
     * 批量删除运货人信息
     * 
     * @param ids 需要删除的运货人信息主键
     * @return 结果
     */
    @Override
    public int deleteFreightInfoByIds(Long[] ids)
    {
        return freightInfoMapper.deleteFreightInfoByIds(ids);
    }

    /**
     * 删除运货人信息信息
     * 
     * @param id 运货人信息主键
     * @return 结果
     */
    @Override
    public int deleteFreightInfoById(Long id)
    {
        return freightInfoMapper.deleteFreightInfoById(id);
    }
}
